package 笔试记录.M9day9三六零;

import java.util.ArrayList;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr = new int[n];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = sc.nextInt();
        }
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 1; i < arr.length - 1; i++) {
            if(i == 0 && arr[i] > arr[i + 1]) list.add(i);
            else if(i == arr.length - 1 && arr[i] > arr[i - 1]) list.add(i);
            else if(arr[i] > arr[i - 1] && arr[i] > arr[i + 1]){
                list.add(i);
            }
        }
        int max = 0;
        for (int i = 0; i < list.size(); i++) {
            int num = solve(arr,list.get(i));
            if(num > max){
                max = num;
            }
        }
        System.out.println(max + 1);
    }

    public static int solve(int[] arr,int index){
        int count = 0;
        //先看后面
        for (int i = index; i < arr.length; i++) {
            if(i == arr.length - 1) continue;
            if(arr[i] > arr[i + 1]) count++;
        }

        for (int i = index;i >= 0;i--){
            if(i == 0) continue;
            if(arr[i] > arr[i - 1]) count++;
        }
        return count;
    }
}
